package com.syyo.admin.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * @author: wang
 * @date: 2021-06-03 17:56:30
 * @Description: 实体类：和数据库对应的
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "sys_post")
public class SysPostEntity extends Model<SysPostEntity> {

    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "post_id", type = IdType.AUTO)
    private Integer  postId;


    /** 岗位名称 */
    private String  postName;

    /** 创建时间 */
    private LocalDateTime  createTime;

    @Override
    protected Serializable pkVal() {
        return this.postId;
    }

}